package com.neusoft.pub.cloud.provider.driver;

import com.neusoft.pub.cloud.provider.entity.SecurityGroup;
import com.neusoft.pub.cloud.provider.request.BaseRequest;
import com.neusoft.pub.cloud.provider.request.CreateSecurityGroupRequest;
import com.neusoft.pub.cloud.provider.request.JoinSecurityGroupRequest;

import java.util.List;

/**
 * describe : 安全组驱动
 *
 * @author hao.dd
 * @date 2023/7/24
 */
public interface SecurityGroupDriver extends BaseDriver {
    /**
     * 将实例加入到指定安全组
     */
    boolean joinSecurityGroup(JoinSecurityGroupRequest request);

    /**
     * 查询安全组列表
     */
    List<SecurityGroup> listSecurityGroup(BaseRequest request);

    /**
     * 创建安全组
     */
    SecurityGroup createSecurityGroup(CreateSecurityGroupRequest request);
}
